<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=divice-width,initial-scale=1.0">
	<title>对象传播操作符</title>
</head>
<body>
	<script type="text/javascript">
		//对象传播操作符...
		let person = {
			name : '小明',
			address :  '廊坊',
			link : 'http://www.baidu.com',
			go(){
				console.log('我骑着小单车');
			}
		};
		//解构
		//name = person.name address = person.address  剩下的都给了person2
		let {name,address,...person2} = person;
		console.log(name);
		console.log(address);
		console.log(person2);
	</script>
</body>
</html>